package com.ruipengkj.component.jtree;

import javax.swing.tree.DefaultMutableTreeNode;

public class OverwriteDefaultMutableTreeNode extends DefaultMutableTreeNode {
	private static final long serialVersionUID = 1L;
	private int nodeNumberId; // 结点标识.对应nodes表中node_id字段
	private int parentNumberId; // 父亲结点标识.对应nodes表中parent_id字段
	private String nodeName; // 结点名称.对应nodes表中node_name字段
	private boolean visited = false; // 是否为第一次访问
	private String leafNode; // 是否为叶子结点.对应node表中is_leaf字段:0-是, 1-不是
	private String nodeDesc; // 结点描述.对应nodes表中node_desc字段.暂未使用

	private String text = null;//说明文本
	
	private String nodeStringID; // 结点标识.对应nodes表中node_id字段
	private int parentStringID; // 父亲结点标识.对应nodes表中parent_id字段
	
	private boolean isNull = true;
//	public OverwriteDefaultMutableTreeNode(int nodeId, String nodeName) {
//		super(nodeName); // 调用DefaultMutableTreeNode的构造方法
//		this.nodeNumberId = nodeId;
//		this.nodeName = nodeName;
//	}
	public OverwriteDefaultMutableTreeNode(String nodeStringID, String nodeName, String text) {
		super(nodeName); // 调用DefaultMutableTreeNode的构造方法
		this.nodeStringID = nodeStringID;
		this.nodeName = nodeName;
		this.text = text;
	}

	public OverwriteDefaultMutableTreeNode(String nodeName) {
		this("0", nodeName, "");
	}
	
	public String getLeafNode() {
		return leafNode;
	}

	public void setLeafNode(String leafNode) {
		this.leafNode = leafNode;
	}

	public String getNodeDesc() {
		return nodeDesc;
	}

	public void setNodeDesc(String nodeDesc) {
		this.nodeDesc = nodeDesc;
	}


	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isVisited() {
		return visited;
	}

	public void setVisited(boolean visited) {
		this.visited = visited;
	}
	public int getNodeNumberId() {
		return nodeNumberId;
	}
	public void setNodeNumberId(int nodeNumberId) {
		this.nodeNumberId = nodeNumberId;
	}
	public int getParentNumberId() {
		return parentNumberId;
	}
	public void setParentNumberId(int parentNumberId) {
		this.parentNumberId = parentNumberId;
	}
	public String getNodeStringID() {
		return nodeStringID;
	}
	public void setNodeStringID(String nodeStringID) {
		this.nodeStringID = nodeStringID;
	}
	public int getParentStringID() {
		return parentStringID;
	}
	public void setParentStringID(int parentStringID) {
		this.parentStringID = parentStringID;
	}
	public boolean isNull() {
		return this.isNull;
	}
	public void setIsNull(boolean isNull) {
		this.isNull = isNull;
	}
}
